package main

import (
	"KumquatDrivesServices/StorageEngine"
	"KumquatDrivesServices/core"
	"KumquatDrivesServices/flags"
	"KumquatDrivesServices/global"
	"KumquatDrivesServices/router"
)

func main() {
	flags.Parse()
	global.Config = core.ReadConf()
	core.InitLogrus()
	global.SnowflakeNode = core.InitSnowflake()
	StorageEngine.Engine = core.InitStorageEngine()
	global.DB = core.InitDB()
	flags.Run()
	global.Redis = core.InitRedis()
	router.Run()
}
